package com.snut.tomorrowNews.dao.front;

import com.snut.tomorrowNews.model.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


import java.util.List;

@Repository
public interface WebmsgDao {
    Webmsg Webmsg();
//上传图片
    void uploadlogo(Webmsg webmsg);
//查询新闻类型
    List<Webmsg> Newstype();

    List<Webmsg> linksselect();
//根据id查类型
    List<News> newstypeid(Integer id);

    List<News> searchnews(String searchname);

    List<News> newsnewstype();

    List<Admsg> admsg();

    News newid(Integer id);

    void collect(@Param("aid") Integer userId, @Param("rid") Integer newsId);

    List<News> recommend();

    List<News> click();

    void clicknum(@Param("aid")Integer aid,@Param("rid")Integer rid);

    void deleteadmsg(Integer id);

    Admsg findadmsg(Integer id);

    void uploadadmsg(Admin admin);

    void deletelink(Integer id);

    Webmsg findlink(Integer id);

    void savelink(Webmsg webmsg);

    void save1link(Webmsg webmsg);

    News findnewstype(Integer id);

    void deletenewstype(Integer id);

    void savenewstype(News news);

    void save1newstype(NewsType newsType);

    void savewebmsg(Webmsg webmsg);

    void saveadmsg(Admsg admsg);
}
